home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / lists / list < prev    next >
Encoding:
Text File  |  1993-10-26  |  957 b   |  30 lines  |  [TEXT/$Tcl]

  1.  
  2.           list arg ?arg ...?
  3.  
  4.  
  5.      DESCRIPTION
  6.           This command returns a  list  comprised  of  all  the  args.
  7.           Braces  and  backslashes get added as necessary, so that the
  8.           index command may be used on the result  to  re-extract  the
  9.           original  arguments,  and  also  so that eval may be used to
  10.           execute  the  resulting  list,  with  arg1  comprising   the
  11.           command's  name and the other args comprising its arguments.
  12.           List produces slightly different results than concat:   con-
  13.           cat  removes  one level of grouping before forming the list,
  14.           while list works directly from the original arguments.   For
  15.           example, the command
  16.  
  17.                list a b {c d e} {f {g h}}
  18.  
  19.           will return
  20.  
  21.                a b {c d e} {f {g h}}
  22.           while concat with the same arguments will return
  23.  
  24.                a b c d e f {g h}
  25.  
  26.  
  27.  
  28.      KEYWORDS
  29.           element, list
  30.